package de.java.hsrm.app;

import de.java.hsrm.respository.Database;
import de.java.hsrm.view.*;
import de.java.hsrm.view.bars.Menubar;
import de.java.hsrm.view.panels.MainPanel;

public class DataManager {
	
	private Frame frame;
	private static DataManager instance = null;
	private Database db;

	public DataManager() {
		this.frame = new Frame(this);
		//this.frame.setGlassPane(new CustomGlassPane());
		//this.frame.getGlassPane().setVisible(true);
		
	}
	
	public static DataManager getInstance(){
		if(instance == null)
			instance = new DataManager();
		return instance;
	}
	
	public Frame getFrame() {
		return frame;
	}
	public Menubar getMenuPanel(){
		return this.frame.getMenuPanel();
	}
	public MainPanel getMainPanel(){
		return this.frame.getMp();
	}

	public Database getDb() {
		return db;
	}
	
}
